<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        body{
            font: 12px "simhei", Arial, Helvetica, sans-serif;
            color: #666;
        }
        div{
            width: 300px;
            height: 84px;
            background-color: #e8e8e8;
            position: relative;
            margin: 10px;

        }
        input{
            width: 253px;
            height: 37px;
            border: 0;
            margin: 10px 20px 10px 20px;
            display: inline-block;
        }
        img{
            position: absolute;
            top: 15px;
            right: 50px;
        }
        p{
            font-size: 12px;
            color: red;
            bottom: 5px;
            left: 20px;
            position: absolute;


        }
    </style>
</head>
<body>
<div>
    <input type="text" placeholder="请输入用户名">
    <img src="http://doc.vrd.net.cn/tstore_v1/images/login/yhm.png" alt="登录图片">
    <p>用户名不能为空!</p>
</div>
</body>
</html>